<?php

/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Badge
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */

class Badge_Form_Request extends Engine_Form {
	public function init() {
		$this->setTitle ( 'Request Badge' )->setDescription ( 'If you would like to have this badge, you can submit a request to administrator for consideration. Once approved, you will become an awarded member of this badge.' )->setAttrib ( 'class', 'global_form_popup badge_request_form_popup' );
		
		$this->addElement ( 'Textarea', 'description', array ('label' => 'Message To Admin:', 'required' => true, 'allowEmpty' => false, 'validators' => array (array ('NotEmpty', true ) ) ) );
		
		// Buttons
		$this->addElement ( 'Button', 'submit', array ('label' => 'Submit Request', 'type' => 'submit', 'ignore' => true, 'decorators' => array ('ViewHelper' ) ) );
		
		$this->addElement ( 'Cancel', 'cancel', array ('label' => 'cancel', 'link' => true, 'prependText' => ' or ', 'href' => '', 'onclick' => 'parent.Smoothbox.close();', 'decorators' => array ('ViewHelper' ) ) );
		$this->addDisplayGroup ( array ('submit', 'cancel' ), 'buttons' );
		$button_group = $this->getDisplayGroup ( 'buttons' );
	
	}
}